package com.zhang.server.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

    private Integer id;
    private String name;
    private String username;
    private Integer age;
    private String sex;
    private String phone;
    private String address;

    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss") // 日期格式化
    private String createtime;

    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss") // 日期格式化
    private String updatetime;

    private Integer account;
}